{% extends "base.html" %}

{% block title %}修改密码{% endblock %}

{% block content %}
<div class="row justify-content-center">
    <div class="col-md-6">
        <h2 class="mb-4">修改密码</h2>
        <form method="POST">
            <div class="mb-3">
                <label for="old_password" class="form-label">原密码</label>
                <input type="password" class="form-control" id="old_password" name="old_password" required>
            </div>
            <div class="mb-3">
                <label for="new_password" class="form-label">新密码</label>
                <input type="password" class="form-control" id="new_password" name="new_password" required>
            </div>
            <div class="mb-3">
                <label for="confirm_password" class="form-label">确认新密码</label>
                <input type="password" class="form-control" id="confirm_password" name="confirm_password" required>
            </div>
            <button type="submit" class="btn btn-primary">提交</button>
            <a href="{{ url_for('user.user_management') }}" class="btn btn-secondary">取消</a>
        </form>
    </div>
</div>
{% endblock %}